package cn.gson.crm.model.po;

import java.util.Date;

import cn.gson.crm.model.entity.Student;

/**
 * @author wangsiyi
 *
 */
public class StudentPayPo extends Student {
	private Integer pId;
	// 收款员工id
	private Integer empId;
	// 学费
	private Integer duePay;
	// 本次缴费金额
	private Integer thisPay;
	// 缴费时间
	private Date payDate;
	// 未缴金额
	private Integer noPay;
	// 已交金额
	private Integer havePay;
	// 咨询师名字
	private String counselorName;
	// 学员状态
	private String stuGradeText;
	// 交款订单编号
	private String payOrderId;
	// 合同id
	private Integer cId;
	// 合同编号
	private String contactOrderId;
	// 合同创建时间
	private Date contractDate;
	// 缴费方式
	private String payWay;
	// 学制
	private String classTypeText;
	// 缴费次数
	private Integer payCount;
	//收款员工姓名
	private String empName;
	
	private String payWayText;

	public Integer getpId() {
		return pId;
	}

	public void setpId(Integer pId) {
		this.pId = pId;
	}

	public Integer getEmpId() {
		return empId;
	}

	public void setEmpId(Integer empId) {
		this.empId = empId;
	}

	public Integer getDuePay() {
		return duePay;
	}

	public void setDuePay(Integer duePay) {
		this.duePay = duePay;
	}

	public Integer getThisPay() {
		return thisPay;
	}

	public void setThisPay(Integer thisPay) {
		this.thisPay = thisPay;
	}

	public Date getPayDate() {
		return payDate;
	}

	public void setPayDate(Date payDate) {
		this.payDate = payDate;
	}

	public String getCounselorName() {
		return counselorName;
	}

	public void setCounselorName(String counselorName) {
		this.counselorName = counselorName;
	}

	public void setStuGradeText(String stuGradeText) {
		this.stuGradeText = stuGradeText;
	}

	public Integer getcId() {
		return cId;
	}

	public void setcId(Integer cId) {
		this.cId = cId;
	}

	public String getPayOrderId() {
		return payOrderId;
	}

	public void setPayOrderId(String payOrderId) {
		this.payOrderId = payOrderId;
	}

	public String getContactOrderId() {
		return contactOrderId;
	}

	public void setContactOrderId(String contactOrderId) {
		this.contactOrderId = contactOrderId;
	}

	public Date getContractDate() {
		return contractDate;
	}

	public void setContractDate(Date contractDate) {
		this.contractDate = contractDate;
	}

	public String getStuGradeText() {
		return stuGradeText;
	}

	public Integer getNoPay() {
		return noPay;
	}

	public void setNoPay(Integer noPay) {
		this.noPay = noPay;
	}

	public Integer getHavePay() {
		return havePay;
	}

	public void setHavePay(Integer havePay) {
		this.havePay = havePay;
	}

	public String getPayWay() {
		return payWay;
	}

	public void setPayWay(String payWay) {
		this.payWay = payWay;
	}

	public Integer getPayCount() {
		return payCount;
	}

	public void setPayCount(Integer payCount) {
		this.payCount = payCount;
	}

	public String getEmpName() {
		return empName;
	}

	public void setEmpName(String empName) {
		this.empName = empName;
	}
	
	

	public String getPayWayText() {
		return this.payWayText;
	}

	public void setPayWayText(String payWay) {
		switch (payWay) {
		case "1":
			this.payWayText = "贷款";
			break;
		case"2":
			this.payWayText = "现缴";
		default:
			this.payWayText = "现缴";
			break;
		}
	}

	@Override
	public void setGradeId(Integer gradeId) {
		super.setGradeId(gradeId);
		switch (gradeId) {
		case 1:
			this.stuGradeText = "完全没兴趣";
			break;
		case 2:
			this.stuGradeText = "可发展客户";
			break;
		case 3:
			this.stuGradeText = "潜在客户";
			break;
		case 4:
			this.stuGradeText = "意向客户";
			break;
		case 5:
			this.stuGradeText = "已签约";
			break;
		case 6:
			this.stuGradeText = "已入学";
			break;
		case 7:
			this.stuGradeText = "已退学";
			break;
		case 8:
			this.stuGradeText = "已毕业";
			break;
		case 9:
			this.stuGradeText = "就业中";
			break;
		case 10:
			this.stuGradeText = "已就业";
			break;
		case 11:
			this.stuGradeText = "已归档";
			break;
		default:
			this.stuGradeText = "可发展客户";
			break;
		}
	}

	public String getClassTypeText() {
		return classTypeText;
	}

	public void setClassTypeText(Integer classType) {
		super.setClassType(classType);
		switch (classType) {
		case 1:
			this.classTypeText = "高中部";
			break;
		case 2:
			this.classTypeText = "研发部";
			break;
		default:
			this.classTypeText = "全部";
			break;
		}
	}

}
